﻿<%@ Page Title="" Language="C#"  AutoEventWireup="true" CodeBehind="SelectDocRec.aspx.cs" Inherits="Honestysoft.Financing.WebUI.Module.Audit.SelectDocRec" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
    <title></title>
    <base target="_self" />
    <meta http-equiv="Pragma" content="no-cache" />
    <meta http-equiv="Cache-Control" content="no-cache" />
    <meta http-equiv="Expires" content="0" />
    <link href="../../Styles/control.css" rel="stylesheet" type="text/css" />
    <script language="javascript" type="text/javascript" src="../../Scripts/control.js"></script>
    <script type="text/javascript" src="../../Scripts/jquery-1.6.min.js"></script>
    <style type="text/css">
    body {
	    margin-top:0px;
    }
    </style>
    <script language="javascript" type="text/javascript">
        function openDialog(url, width, height, title) {
            var obj = new Object();
            obj.name = title;
            var UrlTmp = escape(url);
            var retValue = window.showModalDialog('<%=Page.ResolveClientUrl("~/") %>Scripts/ShowDlg.aspx?url=' + UrlTmp, obj, 'scroll:0;status:0;help:1;resizable:0;dialogWidth:' + width + 'px;dialogHeight:' + height + 'px');
            return false;
        }
        function locking() {
            document.getElementById("divImg").innerHTML = "<img src='../../images/loading1.gif' alt='' />";
            document.getElementById("ly").style.display = "block";
            document.getElementById("ly").style.width = document.body.clientWidth;
            document.getElementById("ly").style.height = document.body.clientHeight;
            document.getElementById("Layer2").style.display = 'block';
        }
        function unlocking() {
            document.getElementById("ly").style.display = 'none';
            document.getElementById("Layer2").style.display = 'none';
        }
        function showDiv() {
            locking();
        }
        function hideDiv() {
            unlocking();
        }
        
    </script>
    </head>
<body style="margin:4px" onload="unlocking();">
    <form id="form1" runat="server">
    <div id="ly" style="position: absolute; top: 0px; filter: alpha(opacity=60); background-color: #777;
z-index: 2; left: 0px; display: none;">
</div>
<!--浮层框架开始-->
<div id="Layer2" align="center" style="position: absolute; z-index: 3; left: 200px; top: 150px;
background-color: #fff; " >
<table width="300" border="0" cellpadding="0" cellspacing="0" style="border: 0   solid   #e7e3e7;
border-collapse: collapse">
<tr>
<td height="80px" align="center">
    <table>
        <tr>
            <td style="width:40px;text-align:center"><div id='divImg' style="float:left;padding:12px;width:40px"></div></td>
            <td style="font-size:12px">正在生成内部审核作业表，此过程可能需要较长时间……</td>
        </tr>
    </table>


</td>
</tr>
</table>
</div>
<!--浮层框架结束-->
    
<div class="query_area">
		项目名称：<asp:TextBox ID="txtProjectName" runat="server"  cssClass="input2" MaxLength="200" Width="100px"></asp:TextBox>&nbsp;&nbsp;	
        合同类别：<asp:DropDownList ID="ddlContractCategory" runat="server" cssClass="input2" ></asp:DropDownList>&nbsp;&nbsp;
		合同编号：<asp:TextBox ID="txtCode" runat="server"  cssClass="input2" MaxLength="200" Width="100px"></asp:TextBox>&nbsp;&nbsp;
		合同名称：<asp:TextBox ID="txtName" runat="server"  cssClass="input2" MaxLength="200" Width="100px"></asp:TextBox>&nbsp;&nbsp;		
        <asp:Button runat="server" ID="btnQuery" Text="查 找" CssClass="btn_normal" 
			onMouseOver="this.className='btn_active'" 
            onMouseOut="this.className='btn_normal'" OnClick="btnQuery_Click" />
    </div>            
    <div class="button_area">
        <asp:Button runat="server" ID="btnAdd" CssClass="btn_normal" 
			onMouseOver="this.className='btn_active'" 
            onMouseOut="this.className='btn_normal'" Text="确 定" OnClientClick="javascript:var ret=getNoSelectionAlert('chkID','请选择要导入的回执后在执行此操作！');if(!ret){return false;}else{showDiv();return true;}"
            onclick="btnAdd_Click" />
        <asp:Button runat="server" ID="Button1" CssClass="btn_normal" 
			onMouseOver="this.className='btn_active'" 
            onMouseOut="this.className='btn_normal'" OnClientClick="javascript:window.returnValue=null;window.close();" Text="取 消"/>
    </div>
     <div style="overflow-y:scroll;overflow-x:hidden;height:500px;">      
    <table cellpadding="0" width="94%" cellspacing="0" border="1" class="t1" id="tGrid">
		<thead>  
            <th align="center" width="30px">
                <input type="checkbox" name="chkAll" value="checkbox" onclick='javascript:checkAll(this,"chkID")' />
            </th>
            <th align="center" width="60px">回执编号</th>
            <th align="center">项目名称</th>
            <th align="center">合同名称</th>
            <th align="center" width="80px">本笔申请金额</th>
            <%--<th align="center">报送单位</th>--%>
            <th align="center" width="40px">报送人</th>
            <th align="center" width="60px">接收时间</th>
            <th width="40px">操作</th>
      	</thead>           
		<asp:Repeater runat="server" ID="rptList">
			<ItemTemplate>
				<tr>
					<td align="center" >
						<input type="checkbox" name="chkID" id="chk<%# DataBinder.Eval(Container.DataItem,"ID") %>"  value="<%# DataBinder.Eval(Container.DataItem,"ID") %>" >
					</td>
					<td><%#  DataBinder.Eval(Container.DataItem,"Code") %></td>
                    <td align="left"><%#  DataBinder.Eval(Container.DataItem,"ProjectSN") %>&nbsp;&nbsp;<%#  DataBinder.Eval(Container.DataItem,"ProjectName") %></td>
					<td align="left"><%#  DataBinder.Eval(Container.DataItem,"ContractName") %></td>
					<td align="right"><%# string.Format("{0:0.00}", DataBinder.Eval(Container.DataItem,"Amount")) %></td>
                    <%--<td><%#  DataBinder.Eval(Container.DataItem,"FromCompanyName") %></td>--%>
					<td><%#  DataBinder.Eval(Container.DataItem,"FromEmployee") %></td>
					<td><%# string.Format("{0:yyyy-MM-dd}", DataBinder.Eval(Container.DataItem, "ReceiveDate"))%></td>
					<td>
						<%# GetButtonScript(DataBinder.Eval(Container.DataItem,"ID")+"") %>
					</td>
				</tr>  
			</ItemTemplate>
		</asp:Repeater>
    </table>
    </div> 
    </form>
    </body>
    </html>
